# Use this script to create a self-contained package for the header generator.
# The result is a program that can run without installing python or anything
# else. Running this setup script requires python 2.7,  the Python Imaging
# Library (PIL), and cx_Freeze.
#
# How to use:
# PLATFORM  ---- COMMAND
# Windows   ---- python setup.py bdist_msi
# Mac OSX   ---- python setup.py bdist_dmg
#
# A linux build is also possible but hasn't been tested.

import sys
from cx_Freeze import setup, Executable

#Dependencies automatically detected, but may need tuning
build_exe_options = {"packages": ["os", "Image", "pickle", "tkFileDialog"]}

#GUI apps require a different base on Windows (The default is for a
#console application).
base = None
#if sys.platform == "win32":
#    base = "Win32GUI"

setup( name = "mikropic",
       version = "0.1",
       description = "MikroPictures image converter",
       options = {"build_exe": build_exe_options},
       executables = [Executable("mikropic.py", base=base)])

       
